/**
 * 
 */
jQuery.fn.MakePage = function(objData){
	
	   var page='<div style="width:430px; height:25px; position:relative; bottom:0px;right:0px;float:right;margin-top:10px;"><span>每页显示'
           +'<select onchange="goRow()"   id="selRow" style="width:55px;height: 25px;">'
           +'<option value ="10" name="pageRow" onclick="goRow(10)">10</option>'
           +'<option value ="20" name="pageRow" onclick="goRow(20)">20</option>'
           +'<option value ="30" name="pageRow" onclick="goRow(30)">30</option>'
           +'<option value ="50" name="pageRow" onclick="goRow(40)">50</option>'
           +'</select>条,&nbsp;</span>共'+objData.totalNum+'条数据,&nbsp;'
   		   +'共<span id="totalPage">'+objData.totalPage+'</span>页,&nbsp;'
   		  if(objData.currentPage>1){
   			page +='<a id="firstPage"  href="javascript:void(0)" onclick="changePage(1)">最前页</a>'
     		      +'<a id="prePage" href="javascript:void(0)" onclick="changePage('+(objData.currentPage-1)+')">上一页</a>'
   		  }
   		  page +='当前第<span id="intPage">'+objData.currentPage+'</span>页'
   		  if(objData.currentPage<objData.totalPage){
   			  page+='<a id="nextPage" href="javascript:void(0)" onclick="changePage('+(objData.currentPage+1)+')">下一页</a>'
   	   		      +'<a id="lastPage"  href="javascript:void(0)" onclick="changePage('+objData.totalPage+')">最后页</a>'
   		  }
           page+=',&nbsp;到第<select id="selPage" onchange="goPage()" style="width:45px;height: 25px;">'
               +'</select>页'
   		       +'</div>';
           var sId = this[0].id;
           document.getElementById(""+sId+"").innerHTML="";//每次执行ajax需要将div清空
           if(objData.totalNum!=0){
        	   $("#"+sId+"").append(page); 
        	   var select=document.getElementById("selPage");
        		  for(var j=1;j<=objData.totalPage;j++){
        			var opt = document.createElement ("option");
        		        opt.value = j;
        		        opt.innerText = j;
        		       /// opt.setAttribute("onclick","goPage("+j+")");
        		      select.appendChild(opt);
            		  }
           }   		  
   		 
}